<div class="layuimini-main">
    <form class="layui-form layui-form-pane" lay-verify="formTest">
        <div class="layui-form layuimini-form">

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <input type="hidden"  id="xsbONo" name="xsbONo"   value="" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">结算方式</label>
                <div class="layui-input-block">
                    <input type="text"  id="xsbOSettlement" name="xsbOSettlement" lay-verify="xsbOSettlement"  value="" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">支付方式</label>
                <div class="layui-input-block">
                    <input type="text"   id="xsbOPay" name="xsbOPay"  lay-verify="xsbOPay"  value="" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">订货方式</label>
                <div class="layui-input-block">
                    <input type="text" id="xsbOOrder" name="xsbOOrder"  lay-verify="xsbOOrder"  value="" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认修改</button>
                </div>
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['form', 'table'], function () {
        var form = layui.form,
            layer = layui.layer,
            table = layui.table,
            $ = layui.$;

        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();

        // 当前弹出层，防止ID被覆盖
        var parentIndex = layer.index;

        //监听提交
        form.on('submit(saveBtn)', function (data) {
            layer.close(parentIndex);
            var result = JSON.stringify(data.field);
            //执行搜索重载
            table.reload('currentTableId', {
                page: {
                    curr: 1
                }
                , where: {
                    searchParams: result    //参数
                    // name : name
                    // s :s
                }
                ,url:"/updateOrder"
                ,method:"post"
            });

            return false;
        });

    });
</script>